import Vue from "vue";
import VueRouter from "vue-router";


Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    redirect: 'mainGraph',
  },
  {
    path: "/mainPage",
    name: "mainPage",
    component: () => import("../views/mainPage.vue")
  },
  {
    path: "/110breakPage",
    name: "110breakPage",
    component: () => import("../views/110breakPage.vue")
  },
  {
    path: "/zhubian",
    name: "zhubian",
    component: () => import("../views/zhubian.vue")
  },
  {
    path: "/ai",
    name: "ai",
    component: () => import("../views/ai.vue")
  },
	// 主接线图
	{
	  path: "/mainGraph",
	  name: "mainGraph",
	  component: () => import("../views/mainGraph")
	},
	// 画面索引
	{
	  path: "/indexPage",
	  name: "indexPage",
	  component: () => import("../views/indexPage")
	},
	// 500kV间隔分图
	{
	  path: "/intervalGraph500kV",
	  name: "intervalGraph500kV",
	  component: () => import("../views/intervalGraph500kV")
	},
	// 庄桂2线间隔分图
	{
	  path: "/ZGIntervalGraph2",
	  name: "ZGIntervalGraph2",
	  component: () => import("../views/ZGIntervalGraph2")
	},
	// 220kV桂敬线间隔分图
	{
	  path: "/GJ220IntervalGraph",
	  name: "GJ220IntervalGraph",
	  component: () => import("../views/GJ220IntervalGraph")
	},
	// #2主变分图
	{
	  path: "/main2IntervalGraph",
	  name: "main2IntervalGraph",
	  component: () => import("../views/main2IntervalGraph")
	},
	// #2主变信号分图1
	{
	  path: "/main2SignalGraph1",
	  name: "main2SignalGraph1",
	  component: () => import("../views/main2SignalGraph1")
	},
	// #2主变信号分图2
	{
	  path: "/main2SignalGraph2",
	  name: "main2SignalGraph2",
	  component: () => import("../views/main2SignalGraph2")
	},
	// #2主变压板分图
	{
	  path: "/main2YaBanGraph",
	  name: "main2YaBanGraph",
	  component: () => import("../views/main2YaBanGraph")
	},
	// 500kV5011断路器间隔分图
	{
		path: "/dlq5011IntervalGraph",
		name: "dlq5011IntervalGraph",
		component: () => import("../views/dlq5011IntervalGraph")
	},
	// 500kV5012断路器间隔分图
	{
		path: "/dlq5012IntervalGraph",
		name: "dlq5012IntervalGraph",
		component: () => import("../views/dlq5012IntervalGraph")
	},
	// 500kV5013断路器间隔分图
	{
		path: "/dlq5013IntervalGraph",
		name: "dlq5013IntervalGraph",
		component: () => import("../views/dlq5013IntervalGraph")
	},
	// 500kV第一串间隔分图
	{
		path: "/skewer1IntervalGraph",
		name: "skewer1IntervalGraph",
		component: () => import("../views/skewer1IntervalGraph")
	},
	// 220kVA段母线保护间隔分图
	{
		path: "/Abusbar220IntervalGraph",
		name: "Abusbar220IntervalGraph",
		component: () => import("../views/Abusbar220IntervalGraph")
	},
	// 220kVB段母线保护间隔分图
	{
		path: "/Bbusbar220IntervalGraph",
		name: "Bbusbar220IntervalGraph",
		component: () => import("../views/Bbusbar220IntervalGraph")
	}
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
